﻿<UserControl x:Class="FrontDisplay.Music.ParametersPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:loc="clr-namespace:FrontDisplay.Localization"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <UserControl.Resources>
        <ResourceDictionary Source="../../Themes/DialogWindow.xaml"></ResourceDictionary>
    </UserControl.Resources>
    <Grid Margin="4">
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="40*" />
            <ColumnDefinition Width="60*" />
        </Grid.ColumnDefinitions>
        <!--<Label Grid.Row="0">Equalizer</Label>
        <ComboBox x:Name="EqualizerComboBox" Grid.Column="1" Grid.Row="0">
            <ComboBoxItem>White</ComboBoxItem>
            <ComboBoxItem>Foreground color</ComboBoxItem>
            <ComboBoxItem>Background color</ComboBoxItem>
        </ComboBox>-->
        <CheckBox Grid.Row="0" Grid.ColumnSpan="2" x:Name="AutoShowOnPlayingCheckBox">
            <TextBlock Text="{loc:Translate Key=Music.AutoshowWhenMisicStartsPlaying, IsAutoUpdate=true}"></TextBlock>
        </CheckBox>
        <StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal">
            <CheckBox x:Name="CloseOnIdleCheckBox">
                <TextBlock Text="{loc:Translate Key=Music.ReturnToTitleWhenIdleAfter, IsAutoUpdate=true}"></TextBlock>
            </CheckBox>
            <TextBox x:Name="IdleDelayTextBox" MaxLength="3" Width="30" IsEnabled="{Binding ElementName=CloseOnIdleCheckBox, Path=IsChecked}"></TextBox>
            <Label><TextBlock Text="{loc:Translate Key=Music.seconds, IsAutoUpdate=true}"></TextBlock></Label>
        </StackPanel>
    </Grid>
</UserControl>
